<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>	
<%@ include file="/pub/front_headmeta.jsp" %>
</head>
<body>
	<div class="top">
		<div class="top-back"><input name="返回" type="button" class="back-botton-left" value="返回" onclick="back();"/></div>
		<div class="top-word">选择发送群</div>
		<div class="top-bottom-right"></div>
	</div>
	<div class="middle">

		<div class="group">
			<form id="sentForm" method="post" action="${ctx}/msgOrder!add.action">	
			<div class="choose-lip">						   
				<input type="hidden" name="msgId" value="${msgId}" />
				<input type="hidden" name="batchId" value="${batchId}" />
				<c:forEach items="${data}" var="o" varStatus="status">
				<label><input class="choose-radio" type="checkbox" name="groupId" value="${o.groupId}"/>${o.groupName}</label><br />
				</c:forEach>
			</div>
			<div class="sent-botton">
				<input name="sent" type="button" class="botton-1" value="发送" onclick="sentMsg();"/>
				<input name="sent" type="button" class="botton-2" value="取消" onclick="back();"/>
			</div>
			</form>
		</div>	
	</div>
</body>
</html>
<script type="text/javascript">
<!--
//发送
function sentMsg(){
	if(!ifCheck('groupId')){
		alert('请选择要发送的群！');
		return;
	}	
	$('#sentForm').submit();
}

//返回
function back(){
	location.href="${ctx}/msg!viewFrontMsg.action?batchId=${batchId}";
}
//-->
</script>